package com.wanho.java159.code.gen.core;

import com.wanho.java159.code.gen.util.FileUtil;
import com.wanho.java159.code.gen.util.GenCodeType;

import java.util.Map;

/**
 * @author zhang
 * @version 1.0
 * @date 2021/7/10
 */
public class ServiceGen {
    public static void genServiceCode(Map<String, Object> entityData) throws Exception{
        System.out.println("===========生成 service层  开始======================");
        // 生成Service文件
        FileUtil.generateToJava(GenCodeType.SERVICE, entityData);
        System.out.println("===========生成 service层  结束======================");
    }
}
